using UnityEditor;
using UnityEngine;

namespace InternalEditor
{
    public class RenameOverlayProxy
    {
        private RenameOverlay renameOverlay = new RenameOverlay();
        public int userData => renameOverlay.userData;
        public bool isWaitingForDelay => renameOverlay.isWaitingForDelay;
        public Rect editFieldRect
        {
            get => renameOverlay.editFieldRect;
            set => renameOverlay.editFieldRect = value;
        }

        public bool userAcceptedRename => renameOverlay.userAcceptedRename;
        public string name => renameOverlay.name;
        public string originalName => renameOverlay.originalName;

        public bool IsRenaming()
        {
            return renameOverlay.IsRenaming();
        }

        public void EndRename(bool b)
        {
            renameOverlay.EndRename(b);
        }

        public bool OnGUI()
        {
            return renameOverlay.OnGUI();
        }

        public void Clear()
        {
            renameOverlay.Clear();
        }

        public void BeginRename(string s, int selectedLayerIndex, float f)
        {
            renameOverlay.BeginRename(s, selectedLayerIndex, f);
        }

        public void OnEvent()
        {
            renameOverlay.OnEvent();
        }
    }
}